import { offlinePay } from "@/service/api/order.js"
import { getUserInfo } from "@/utils/appInit.js"
import store from "@/store/index.js"
const orderUtil = {
    //支付
    payForApi: (param) => {
        return new Promise((resolve, reject) => {
            offlinePay(param).then((res) => {
                if (res.IsOK) {
                    //更新用户余额
                    getUserInfo().then((res) => {})
                }
                resolve(res)
            })
        })
    },
}
module.exports = {
    payForApi: orderUtil.payForApi,
}
